package com.example.entity;

import org.hibernate.annotations.Cascade;

import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * @ClassName Friend
 * @Description
 * @Author JY
 * @Date 2020/7/26 17:39
 **/

public class Friend {

    private int friendId;

    private String name;

    private int age;

    private Set<Human> humanSet = new HashSet<>();

    public Set<Human> getHumanSet() {
        return humanSet;
    }

    public void setHumanSet(Set<Human> humanSet) {
        this.humanSet = humanSet;
    }

    public int getFriendId() {
        return friendId;
    }

    public void setFriendId(int friendId) {
        this.friendId = friendId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Friend{" +
                "friendId=" + friendId +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
